package cn.congzhou.crm.domain;

import com.alibaba.fastjson.JSON;
import lombok.*;

import java.util.HashMap;
import java.util.Map;

@Getter@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Department {

    private Long id;

    private String name;

    private String sn;

    private String remark;


    public String getJson(){
        Map<String,Object> map = new HashMap<>();
        map.put("id",id);
        map.put("name",name);
        map.put("sn",sn);
        map.put("describe",remark);
//        String json = JSON.toJSONString(map);
//        return json;
        return JSON.toJSONString(map);
    }

}